package top.greatxiaozou.BuilderPattern;

public class BuilderPatternTest {
    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();

        Meal vegMeal = mealBuilder.prepareVegMeal();
        Meal meal = mealBuilder.prepareNonVegMeal();

        //输出蔬菜meal的信息
        System.out.println("VegMeal info:");
        vegMeal.showItem();
        System.out.println("vegMeal cost:"+vegMeal.getCost());

        //输出肉meal的信息
        System.out.println();
        System.out.println("meat info");
        meal.showItem();
        System.out.println("meal cost:"+meal.getCost());
    }
}
